package com.shiroha.video.pojo.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommentVO {
    private Long id;                    // 评论ID
    private Long workId;                // 作品ID
    private UUID userId;                // 用户ID
    private String username;            // 用户名
    private String userAvatar;          // 用户头像
    private String content;             // 评论内容
    private Long parentId;              // 父评论ID
    private int likeNum;                // 点赞数
    private boolean isLiked;            // 是否点赞
    private boolean isTop;              // 是否置顶
    private List<CommentVO> children = new ArrayList<>();   // 子评论
    private LocalDateTime createdAt;
}
